package com.waimai.mobile.api.entity;

import java.util.Date;

/**
 * Comment entity. @author MyEclipse Persistence Tools
 */

public class Comment implements java.io.Serializable {

    public final static int COMMENT_ALL = 1;
    public final static int COMMENT_GOOD = 2;
    public final static int COMMENT_MIDDLE = 3;
    public final static int COMMENT_BAD = 4;


    public final static float STARS_MAX = (float) 5.5;
    public final static float STARS_GOOD = (float) 4.0;
    public final static float STARS_MIDDLE = (float) 2.0;

    // Fields

    private Integer commentId;
    private Float starLevel;
    private String content;
    private Date pubTime;

    private User user;

    // Constructors

    /** default constructor */
    public Comment() {
    }


    // Property accessors

    public Integer getCommentId() {
        return this.commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Float getStarLevel() {
        return this.starLevel;
    }

    public void setStarLevel(Float starLevel) {
        this.starLevel = starLevel;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPubTime() {
        return this.pubTime;
    }

    public void setPubTime(Date pubTime) {
        this.pubTime = pubTime;
    }



    public User getUser() {
        return user;
    }


    public void setUser(User user) {
        this.user = user;
    }


    @Override
    public String toString() {
        return "Comment [commentId=" + commentId + ", starLevel=" + starLevel
                + ", content=" + content + ", pubTime=" + pubTime + "]";
    }
}